TestFetcher   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 14
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A get 0 4 1
A create 0 7 1
1
import Fetcher from '../fetcher.js'
2
3
export default class TestFetcher extends Fetcher {
4
  async get ({ url }) {
5 3
    this.log(`Call a request to ${url}`)
6 3
    return 42
7
  }
8
9
  static create ({ fetch, logger }) {
10 4
    const fetcher = new TestFetcher()
11 4
    fetcher.setFetch(fetch)
12 4
    fetcher.setLogger(logger)
13
14 3
    return fetcher
15
  }
16
}
17